cmake_minimum_required (VERSION 2.6)

project (parall)

#set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../findtbb-read-only/CMake/FindTBB/")

add_executable(${PROJECT_NAME}
  src/operations.cc
  src/invert.cc
  src/incrustation.cc
  src/threshold.cc
  src/sobel.cc
  src/convolution.cc
  src/parser.cc
  src/run.cc
  src/mix.cc
  src/main.cc)

FIND_PACKAGE( OpenCV REQUIRED )

FIND_PACKAGE(TBB)

include_directories(${TBB_INCLUDE_DIRS})
link_directories(${TBB_LIBRARY_DIRS})

TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${OpenCV_LIBS} )
TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${TBB_LIBRARIES} )
